package com.foreknow.polymorphism;

/**
 * @author shkstart
 * @create 2021-07-26 17:02
 */
public class Cat extends Animal {
    private String name;
    private int legNum;
    public Cat(String name, int legNum) {
       this.name=name;
       this.legNum=legNum;
    }


    public String getName() {
        return name;
    }


    public int getLegNum() {
        return legNum;
    }

    @Override
    public String shout() {
       return "喵喵喵";
    }
}
